package com.nycreativity.elecreativity

import com.nycreativity.elecreativity.entity.param.activity.ActivityQueryParam
import com.nycreativity.elecreativity.entity.vo.activity.ActivityVO
import com.nycreativity.elecreativity.mapper.ActivityMapper
import com.nycreativity.elecreativity.util.COSUtil
import com.nycreativity.elecreativity.util.KtWrapperUtil
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import javax.annotation.Resource

@SpringBootTest
class EleCreativityApplicationTests {

    @Test
    fun contextLoads() {
        val activityQueryParam = ActivityQueryParam().apply {
            this.activityTheme = "123"
            this.content = "666"
        }
        val ktQueryWrapper = KtWrapperUtil.getKtQueryWrapper<ActivityVO, ActivityQueryParam>(activityQueryParam)
        println(ktQueryWrapper)
    }

    @Resource
    lateinit var activityMapper: ActivityMapper

    @Autowired
    lateinit var cosUtil: COSUtil

    @Test
    fun test01() {
        cosUtil.deleteFile(fileName = "additional-spring-configuration-metadata-210C90E715734234A97A15483B73DD85.json")
    }

}
